import request from '@/utils/request'

// 获取状态列表
export function getStatusList() {
  return request({
    url: '/operation/web/operationWaterQualityTestReport/statusList',
    method: 'get'
  })
}

// 获取水质化验报表列表
export function getWaterQualityReportList(params) {
  return request({
    url: '/operation/web/operationWaterQualityTestReport/list',
    method: 'get',
    params
  })
}

// 获取水质化验报表详情
export function getWaterQualityReportDetail(id) {
  return request({
    url: `/operation/web/operationWaterQualityTestReport/${id}`,
    method: 'get'
  })
}

// 新增水质化验报表
export function addWaterQualityReport(data) {
  return request({
    url: '/operation/web/operationWaterQualityTestReport',
    method: 'post',
    data
  })
}

// 数据补调
export function adjustReport(data) {
  return request({
    url: '/operation/web/operationWaterQualityTestReport/adjustment',
    method: 'post',
    data
  })
}

// 提交报表
export function commitReport(id) {
  return request({
    url: `/operation/web/operationWaterQualityTestReport/commit/${id}`,
    method: 'post'
  })
}

// 审核报表
export function reviewReport(data) {
  return request({
    url: '/operation/web/operationWaterQualityTestReport/review',
    method: 'post',
    data
  })
}

// 删除报表
export function deleteReport(id) {
  return request({
    url: `/operation/web/operationWaterQualityTestReport/${id}`,
    method: 'delete'
  })
}


// 获取化验项目列表信息
export function getLaboratoryWorkOrderDemoList(params) {
  return request({
    url: '/operation/web/operationLaboratoryWorkOrder/itemList',
    method: 'get',
    params
  })
}
